﻿using System;
using System.Collections.Generic;

namespace EulerDB
{
    public class EulerNode
    {
        public Guid Id { get; set; }

        public string NodeLabel { get; set; }

        public string NodeType { get; set; } // person/animal/cat/dog/chair

        public Dictionary<string, object> Bag { get; set; } = new Dictionary<string, object>();

        public void AddToBag(string key, object value)
        {
            Bag[key] = value;
        }

        public void DeleteFromBag(string key)
        {
            if (Bag.ContainsKey(key))
                Bag.Remove(key);
        }
    }
}